<?php
namespace Home\Model;
use Think\Model;
class GoodsordersModel extends Model {
    	/**
    	 * [列表数据]
    	 * @Author   Axing
    	 * @DateTime 2017-08-22
    	 * @param    [array]     $arr [字段]
    	 * @return   [type]           [description]
    	 */
    	public function lists($arr) {
            $data = $this->field($arr['field'])->join('car ON car.ordersid = goodsorders.ordersid')->join('goods ON goods.goodsid = car.goodsid')->where($arr['where'])->order($arr['order'])->limit($arr['currentPage'], $arr['numPerPage'])->select();
            return $data;
    	}
}